/*
 Navicat Premium Data Transfer

 Source Server         : 192.168.1.103_3306
 Source Server Type    : MySQL
 Source Server Version : 80011
 Source Host           : 192.168.1.103:3306
 Source Schema         : security

 Target Server Type    : MySQL
 Target Server Version : 80011
 File Encoding         : 65001

 Date: 27/05/2021 19:50:16
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for sys_directory
-- ----------------------------
DROP TABLE IF EXISTS `sys_directory`;
CREATE TABLE `sys_directory` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `state` int(255) DEFAULT NULL,
  `desc` varchar(255) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_directory
-- ----------------------------
BEGIN;
INSERT INTO `sys_directory` VALUES (2, 'order', 0, '未支付', '2021-05-26 15:36:41', '2021-05-26 15:36:44');
COMMIT;

-- ----------------------------
-- Table structure for sys_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_log`;
CREATE TABLE `sys_log` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `method` varchar(255) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `ip` varchar(255) DEFAULT NULL,
  `args` varchar(255) DEFAULT NULL,
  `class_method` varchar(255) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_log
-- ----------------------------
BEGIN;
COMMIT;

-- ----------------------------
-- Table structure for sys_perssion
-- ----------------------------
DROP TABLE IF EXISTS `sys_perssion`;
CREATE TABLE `sys_perssion` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `perssion` varchar(255) DEFAULT NULL,
  `url` varchar(255) DEFAULT NULL,
  `parent_id` int(11) DEFAULT NULL,
  `sort` varchar(255) DEFAULT NULL,
  `icon` varchar(255) DEFAULT NULL,
  `state` int(255) DEFAULT NULL,
  `flag` int(255) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_perssion
-- ----------------------------
BEGIN;
INSERT INTO `sys_perssion` VALUES (1, '系统管理', 'user', '', 0, '0', NULL, 1, 1, '2021-05-26 09:23:05', '2021-05-26 09:23:08');
INSERT INTO `sys_perssion` VALUES (2, '角色管理', 'role', '', 1, '2', NULL, 1, 1, '2021-05-26 09:24:20', '2021-05-26 09:24:23');
INSERT INTO `sys_perssion` VALUES (3, '资源管理', 'resouce', NULL, 1, '3', NULL, 1, 1, '2021-05-26 09:25:46', '2021-05-26 09:25:49');
INSERT INTO `sys_perssion` VALUES (4, '用户管理', 'sys', NULL, 1, '1', NULL, 1, 1, '2021-05-26 09:26:59', '2021-05-26 09:27:03');
COMMIT;

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_name` varchar(255) DEFAULT NULL,
  `role_remark` varchar(255) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
BEGIN;
INSERT INTO `sys_role` VALUES (1, 'admin', '最高管理员权限', '2021-05-26 09:32:16', '2021-05-26 09:32:18');
INSERT INTO `sys_role` VALUES (2, 'test', '测试', '2021-05-26 09:32:13', '2021-05-26 09:32:21');
INSERT INTO `sys_role` VALUES (3, 'dev', '开发', '2021-05-26 09:32:36', '2021-05-26 09:32:39');
COMMIT;

-- ----------------------------
-- Table structure for sys_role_perssion
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_perssion`;
CREATE TABLE `sys_role_perssion` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `role_id` int(11) DEFAULT NULL,
  `perssion_id` int(11) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_role_perssion
-- ----------------------------
BEGIN;
INSERT INTO `sys_role_perssion` VALUES (1, 1, 1, '2021-05-26 09:30:46', '2021-05-26 09:30:49');
INSERT INTO `sys_role_perssion` VALUES (2, 1, 2, '2021-05-26 09:31:04', '2021-05-26 09:31:07');
INSERT INTO `sys_role_perssion` VALUES (3, 1, 3, '2021-05-26 09:31:20', '2021-05-26 09:31:22');
INSERT INTO `sys_role_perssion` VALUES (4, 1, 4, '2021-05-26 09:31:33', '2021-05-26 09:31:35');
COMMIT;

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_name` varchar(255) DEFAULT NULL,
  `user_password` varchar(255) DEFAULT NULL,
  `salt` varchar(255) DEFAULT NULL,
  `state` int(255) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
BEGIN;
INSERT INTO `sys_user` VALUES (1, 'uuu', 'a8c969cde38376726c7b7fe528bf52b9', 'huangfei', 1, '2021-05-26 09:30:24', '2021-05-26 09:30:27');
INSERT INTO `sys_user` VALUES (4, 'ss', 'ss', NULL, NULL, NULL, NULL);
INSERT INTO `sys_user` VALUES (5, 'sdsd', 'ddd', NULL, NULL, NULL, NULL);
INSERT INTO `sys_user` VALUES (6, 'dddd', 'dd', NULL, NULL, NULL, NULL);
INSERT INTO `sys_user` VALUES (7, 'ddd', 'dssd', NULL, NULL, NULL, NULL);
INSERT INTO `sys_user` VALUES (8, 'ddd', 'ddd', NULL, NULL, NULL, NULL);
INSERT INTO `sys_user` VALUES (12, 'huangfei', '1913e0ad6266dd95b12d4d9e18d460b5', 'huangfei', 1, '2021-05-27 11:27:40', '2021-05-27 11:27:40');
COMMIT;

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) DEFAULT NULL,
  `role_id` int(11) DEFAULT NULL,
  `create_date` datetime DEFAULT NULL,
  `update_date` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
BEGIN;
INSERT INTO `sys_user_role` VALUES (1, 1, 1, '2021-05-26 09:30:10', '2021-05-26 09:30:14');
INSERT INTO `sys_user_role` VALUES (15, 12, 1, '2021-05-27 11:27:41', '2021-05-27 11:27:41');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
